package icu.d4peng.cloud.user.request;

import com.alibaba.fastjson.JSON;
import icu.d4peng.cloud.user.enums.Status;

import java.io.Serializable;

/**
 * @author d4peng
 * @version 1.0.0
 * @date 2022-01-01 11:23
 * @description ModifyRequest:修改请求
 */
public class ModifyRequest implements Serializable {
    /**
     * ID
     */
    private Long id;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 密码
     */
    private String password;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 头像地址
     */
    private String avatar;
    /**
     * 用户状态
     */
    private Status status;
    /**
     * 备注
     */
    private String remark;

    public Long getId() {
        return id;
    }

    public ModifyRequest setId(Long id) {
        this.id = id;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public ModifyRequest setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public ModifyRequest setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getNickName() {
        return nickName;
    }

    public ModifyRequest setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public ModifyRequest setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getAvatar() {
        return avatar;
    }

    public ModifyRequest setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }

    public Status getStatus() {
        return status;
    }

    public ModifyRequest setStatus(Status status) {
        this.status = status;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public ModifyRequest setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
